package hzau.service;

import hzau.pojo.College;
import hzau.pojo.requestParams.CollegeRegisterParam;
import hzau.result.Result;

public interface CollegeService {
    Result register(CollegeRegisterParam college);

    Result delete(Long id);

    Result getOne(Long universityId, Long collegeId);

    Result getAll(Long universityId, Integer page);
    void updateRedis(Long universityId);
    void deleteFromRedis(Long universityId);

    Result update(College college);

    Result getAllCollege(Long universityId);

    Result getPresident(Long collegeId);

    Result setPresident(Long collegeId, Long id);
}
